import type { ProductTypeEnum } from '@/const/enum'
import type { EnumDto } from '../types'
import type { UploadFileDto } from '@/components/file/Upload'

export interface SaleReqDto {
    companyId: number
    id: number
    productType: ProductTypeEnum.PAYWAGE | ProductTypeEnum.PERIOD | ProductTypeEnum.DALIY | ProductTypeEnum.GROUP | ProductTypeEnum.ELESIGN
    saleId: number
    serviceStartTime: string
    serviceState: number
    saleOldId: number
}


export interface ProductDto {
    id: number
    companyId: number
    companyIds: null
    productType: number
    saleId: number
    serviceState: number
    useState: null
    createTime: string
    updateTime: null
    productOpenTime: string
    openTime: string
    updateSalerTime: string
    createUserId: null
    updateUserId: null
    remark: null
    params: Params
    companyName: string
    beginCreateTime: null
    endCreateTime: null
    salesName: string
    serviceStartTime: null
    serviceEndTime: null
    saleOldId: null
    customName: null
    queryMonth: null
    isAdmin: null
    productTypeName: string
    saleIds: null
    deptName: string
    deptId: number
    deptIds: null
    amount: null
    sortField: null
    sortOrder: null
    adminName: null
    hasSale: null
    companyNames: null
    phone: null
    isCheckRole: null
}

interface Params {
}

export interface AllocateRecordDto {
    salesName: string
    companyName: string
    productTypeName: string
}
